/**
 * 
 */
package com.googlecode.agiletools.type;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * The base class of persistent objects.
 * @author Administrator
 *
 */
@MappedSuperclass
public class BaseObject implements Serializable {

	private static final long serialVersionUID = -6839480123030692777L;
	
	private int id;

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue()
	public int getId() {
		return id;
	}

}
